﻿using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace YArchitech.Controls.ImgListView
{
	[ComVisible(true)]
	[Serializable]
	public class ColumnClickEventArgs
	{
		public ImageListView.ImageListViewColumnHeader Column
		{
			get
			{
				return this.mColumn;
			}
		}

		public Point Location
		{
			get
			{
				return this.mLocation;
			}
		}

		public int X
		{
			get
			{
				return this.mLocation.X;
			}
		}

		public int Y
		{
			get
			{
				return this.mLocation.Y;
			}
		}

		public MouseButtons Buttons
		{
			get
			{
				return this.mButtons;
			}
		}

		public ColumnClickEventArgs(ImageListView.ImageListViewColumnHeader column, Point location, MouseButtons buttons)
		{
			this.mColumn = column;
			this.mLocation = location;
			this.mButtons = buttons;
		}

		private ImageListView.ImageListViewColumnHeader mColumn;

		private Point mLocation;

		private MouseButtons mButtons;
	}
}
